package net.onceface.application.commons;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 支付参数配置
 * **/
public class PaymentParam {

	/**
	 * 默认配置的是UTF-8
	 * **/
	public static final String ENCODING_UTF8 = "UTF-8";
	
	/**
	 * 银联商户号
	 * **/
	public static final String BANK_MER_ID = "777290058125552";
	
	/**
	 * 版本号
	 * **/
	public static final String BANK_VERSION = "5.0.0";
	
	/**
	 * 前台通知地址
	 * **/
	public static final String FRONT_URL = "http://127.0.0.1:8080/ACPSample_B2C/frontRcvResponse";
	
	/**
	 * 受理方和发卡方自选填写的域[O]--后台通知地址
	 * **/
	public static final String BACK_URL = "http://api.onceface.net/api/ACPBackResponse";
	
	/***
	 * 银联商户发送交易时间 格式:YYYYMMDDhhmmss
	 * **/
	public static String getCurrentTime() {
		return new SimpleDateFormat("yyyyMMddHHmmss").format(new Date());
	}
}
